<template>
  <div class="app dpflex col">
    <div class="header"></div>
    <div class="content flex1 dpflex col">
      <div class="nav">
        <van-tabs v-model="active" color="#FFC300" title-active-color="#FFC300">
          <van-tab to="/goods" title="商品"></van-tab>
          <van-tab to="/business" title="评价"></van-tab>
          <van-tab to="/shop" title="商家"></van-tab>
        </van-tabs>
      </div>
      <div class="list dpflex">
        <router-view></router-view>
      </div>

      <div class="buttom">
        <button class="footer"></button>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";

@Component
export default class App extends Vue {
  active = 0;
}
</script>

<style scoped lang="less">
.header {
  height: 150px;
  width: 100%;
  background: #798;
}

.nav {
  width: 100%;
  height: 50px;
}
.content {
  overflow: hidden;
}
.list {
  width: 100%;
  height: calc(100vh - 200px);
  overflow: hidden;
}
.buttom {
  text-align: center;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.2);
}
.footer {
  width: 80%;
  height: 60px;
  border-radius: 60px;
  background: #798;
  margin-bottom: 15px;
}
</style>
